package com.zoanun.zhuinew.actionbar;

import android.app.Activity;
import android.content.Intent;
import android.widget.SearchView.OnQueryTextListener;

public class ActionBarSearchViewListener implements OnQueryTextListener{

	private Activity context;
	
	public ActionBarSearchViewListener(Activity context){
		this.context = context;
	}
	
	@Override
	public boolean onQueryTextChange(String arg0) {
		
		return false;
	}

	@Override
	public boolean onQueryTextSubmit(String arg0) {
		Intent intent = new Intent();
		intent.setClassName(context, "com.zoanun.zhuinew.SplashScreen");
		context.startActivity(intent);
		context.finish();
		return false;
	}
	
}
